package com.lgc.login.ui

import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.lgc.common.model.SingleLiveData
import com.lgc.login.databinding.ActivityTextlivedataBinding


class TextViewModel : ViewModel() {
     val testdata= ObservableField<String>()
     val testdata2= SingleLiveData<String>()
    fun changeText(binding: ActivityTextlivedataBinding){
        testdata.set("test")
    }

    fun changeText2(data: String){
        testdata2.value=data
    }

    suspend fun changeText3(data: String){
        testdata2.value=data
    }
}